package com.example.boot.controller;

import com.example.common.Result;
import com.example.pojo.entity.Track;
import com.example.service.Impl.TrackServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 鹰眼轨迹表相关服务
 * @author ding
 * @since  2024/6/24
 */
@RestController
@RequestMapping("/track")
public class TrackController {

    @Autowired
    private TrackServiceImpl trackServiceImpl;

    @PostMapping("/add")
    public Result add(@RequestBody Track track){

        return Result.success();
    }

    @GetMapping("/all")
    public Result getAll(){

        return Result.success();
    }

    @GetMapping("/getById/{id}")
    public Result getById(@PathVariable Integer id){

        return Result.success();
    }

    @DeleteMapping("/delete/{id}")
    public Result delete(@PathVariable Integer id){


        return Result.success();
    }

    @PutMapping("/update")
    public Result update(@RequestBody Track track){

        return Result.success();
    }

}
